Q expandable Class
Implements expandable containers that work on most modern browsers, including ones on touchscreens.
Constructor
Q expandable
-
[options]
Parameters:
-
[options]Object optionalOverride various options for this tool
-
[title]String optionalRequired. The title for the expandable.
-
[content]String optionalRequired. The content.
-
[count]Number optionalA number, if any, to display when collapsed.
-
[spaceAbove]Number optionalHow many pixels of space to leave above at the end of the scrolling animation
-
[expanded]Boolean optionalWhether it should start out expanded
-
[autoCollapseSiblings]Boolean optionalWhether, when expanding an expandable, its siblings should be automatically collapsed.
-
[scrollContainer]Boolean optionalWhether to scroll a parent container when necessary
-
Returns:
Item Index
Methods
Methods
expand
-
[options] -
[callback]
Parameters:
-
[options]Object optional-
[autoCollapseSiblings]Boolean optionalWhether, when expanding an expandable,
-
[scrollContainer]Boolean optionalWhether to scroll a parent container
-
[scrollToElement]Boolean optionalCan be used to specify another element to scroll to when expanding. Defaults to the title element of the expandable.
-
[spaceAbove]Number optionalHow many pixels of space to leave above at the end of the scrolling animation
-
-
[callback]Function optionalthe function to call once the expanding has completed